package com.example.syssoft.config;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private Boolean flag;
    private Object  data;
    private String  msg;

    public Result(){}


    public Result(Boolean flag){
        this.flag= flag;
    }

    public Result(Boolean flag, Object data){
        this.flag= flag;
        this.data=data;
    }

    public Result(String msg){
        this.flag= false;
        this.msg=msg;
    }

}
